properties([
   parameters([
      string(name: 'EXECUTE_NODE', defaultValue: 'master', description: ''),
      choice(name: "PROJECT", choices: ['Test', 'Chijin'], description: 'Choose a Project'),
    ])
 ])

node( "${params.EXECUTE_NODE}" )
{
	// stage("delete old version")
	// {
	// 	def srcProjectDir = "${env.WORKSPACE}\\..\\chijin-ab-on-windows-worker\\${config.projectName(params.PROJECT)}"
	// 	bat "del ${srcProjectDir} /S /Q"
	// }

	// 删除不小心拷贝放到Res中的assetbundle
	stage("delete asset Bundles")
	{
		def assetbundleDir = "${config.localProjectDir(params.PROJECT)}\\Assets\\UnityEngine.AssetGraph\\Cache\\AssetBundles\\"
		bat "del ${assetbundleDir} /S /Q"
	}

}